﻿# CMakeList.txt: pomian 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
project ("pomian")

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}/Library)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}/Library)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}/Runtime)

include_directories(${SOLUTION_DIR}/grammar)
include_directories(${SOLUTION_DIR}/tokenizer)

# 将源代码添加到此项目的可执行文件。
add_executable (${PROJECT_NAME} "pomian.cpp" "pomian.h")

link_directories(${SOLUTION_DIR}/Library)

target_link_libraries(${PROJECT_NAME} PRIVATE grammar)
target_link_libraries(${PROJECT_NAME} PRIVATE tokenizer)

if (CMAKE_VERSION VERSION_GREATER 3.12)
  set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 20)
endif()

# TODO: 如有需要，请添加测试并安装目标。
